
const express = require('express');
const expressJoi = require('@escook/express-joi');

// 导入验证规则
const { login_limit } = require('../limit/login.js');

// 使用express框架的路由
const router = express.Router();

// 导入路由处理函数
const loginHandler = require('../router_handler/login.js')

// 新建接口路由
router.post('/register',expressJoi(login_limit),loginHandler.register)

router.post('/login',expressJoi(login_limit),loginHandler.login)



module.exports = router;